package day3

class ClassContratorDemo {
  val name:String = "Tom"
  var age :Int = 30

  private val addr:String = "nnn"

  private[this]  val sex:String = "nan"

  def getSex(): String ={
    println(ClassContratorDemo.con)
    sex
  }
}

object ClassContratorDemo{
  val con :String = "ccc"
  def main(args: Array[String]): Unit = {
    val classContratorDemo = new ClassContratorDemo()
    classContratorDemo.age = 2323
    //classContratorDemo.name = "344"
    println(classContratorDemo.age )
    println(classContratorDemo.name )

    classContratorDemo.addr
    classContratorDemo.getSex()
  }
}
